<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        #root{
            height: 100vh;
            overflow: hidden;
            margin: 0 16px;
        }

        article {
            columns: calc(100vw - 32px) 1;
            column-gap: 16px;
            height: 100%;
            transition: .4s;
        }
    </style>
</head>
<body>
    <div id="root">
        <article>
            <h3>第一章:小孩说</h3>
            <p>
                宇宙无敌超级帅，第一第一第一，你是最棒的。。。。
            </p>
        </article>
    </div>

    <script>
        let i = 0
        let article = document.querySelector('article')
    
        setInterval(() => {
            let width = document.body.offsetWidth;
            i++;
            if(i > 3) i = 0
            article.style.transform = `translateX(-${(width - 16) * i}px`
            console.log(`${(width - 16) * i}`);

        },1000)
    </script>
</body>

</html>